﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Sunboxsoft.ASMS.Server.Domain.Service
{
    static class PrivateCreateSerivce
    {
        public static void CreateBillHeader(ASMSDbContext dbContext, Guid billId, string billNumber, int billType, DateTime createdTime, string creator)
        {
            Entity.EBillHeader billHeader = new Entity.EBillHeader();
            billHeader.BillId = billId;
            billHeader.BillNumber = billNumber;
            billHeader.BillType = billType;
            billHeader.CreatedTime = createdTime;
            billHeader.Creator = creator;
            dbContext.Set<Entity.EBillHeader>().Add(billHeader);
        }
    }
}
